import 'package:flutter/material.dart';

Future<T?> open<T extends Object?>(BuildContext context, Widget widget) {
  return Navigator.push(
    context,
    MaterialPageRoute(builder: (context) {
      return widget;
    }),
  );
}
